<!--单行文本-->
<template>
  <el-rate
    v-model="value"
    v-bind="extend"
    :id="'c' + columnId"
    :name="'c' + columnId"
    :size="size"
    :clearable="clearable"
  >
  </el-rate>
</template>

<script>
  import { defineComponent } from 'vue'
  import { ElRate } from 'element-plus'
  // 引入组件需要的属性 引入表单子控件的管理类
  import { itemProps, itemController } from '../../map'

// 五星评分
export default defineComponent({
  name: 'el-form-item-rate',
  inheritAttrs: false,
  components: {
    ElRate
  },
  props: {
    ...itemProps, // 基础属性
    modelValue: [String, Number]
  },
  emits: ['update:modelValue'],
  setup (props, context) {
    return {
      ...itemController(props, context.emit) // value、mySubmit
    }
  }
})
</script>
